﻿using System;
using System.Collections.Generic;
using System.Windows.Input;

namespace wordroid.utils
{
    public class Constants
    {
        //numeric keyboard filter
        public static readonly Key[] numeric = new[] {Key.Back, Key.NumPad0, Key.NumPad1, Key.NumPad2, Key.NumPad3, Key.NumPad4,
                                                          Key.NumPad5, Key.NumPad6, Key.NumPad7, Key.NumPad8, Key.NumPad9 };

        public static readonly String EditWordUrl = "/View/EditWord.xaml?word_id={0:D}";
        public static readonly String CreateWordUrl = "/View/EditWord.xaml";
        public static readonly String TrainingUrl = "/View/Training.xaml?count={0:D}&locale={1:S}";
        public static readonly String SiteUrl = "http://10.44.1.72:8080/api/get_dict.xml";

        public static readonly int MAX_INV_TRANS = 4;

        //xml items
        public static readonly String XML_WORD = "word";
        public static readonly String XML_ORIGINAL_WORD = "original_word";
        public static readonly String XML_TRANS = "trans";
        public static readonly String XML_INV_TRANS = "invalid_trans";

        public static readonly string APP_ID = "F0C05D7BF12A9354986FE1F5F05A3E4641D060A2";
        // for offline using. you can download languages list here:
        // http://api.microsofttranslator.com/v2/Http.svc/GetLanguagesForSpeak?appId=F0C05D7BF12A9354986FE1F5F05A3E4641D060A2
        // F0C05D7BF12A9354986FE1F5F05A3E4641D060A2 - application Id
        public static readonly List<String> TTS_LOCALES = new List<string> { "en", "en-au", "en-ca", "en-gb", "en-in", "en-us",
                                                                                "ca", "ca-es", "da", "da-dk", "de", "de-de", "es",
                                                                                "es-es", "es-mx", "fi", "fi-fi", "fr", "fr-ca",
                                                                                "fr-fr", "it", "it-it", "ja", "ja-jp", "ko", "ko-kr",
                                                                                "nb-no", "nl", "nl-nl", "no", "pl", "pl-pl", "pt",
                                                                                "pt-br", "pt-pt", "ru", "ru-ru", "sv", "sv-se", 
                                                                                "zh-chs", "zh-cht", "zh-cn", "zh-hk", "zh-tw" };
        public static readonly String DEFAULT_LOCALE = "en";
    }
}
